<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改试卷目录')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-folder-edit" th:object="${examFolder}">
            <input name="folderId" th:field="*{folderId}" type="hidden">
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">试卷ID：</label>
                    <div class="col-sm-8">
                        <input name="paperId" th:field="*{paperId}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">单选题数量：</label>
                    <div class="col-sm-8">
                        <input name="radioNum" th:field="*{radioNum}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">单选题每道题分数：</label>
                    <div class="col-sm-8">
                        <input name="radioOneScore" th:field="*{radioOneScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">单选题总分：</label>
                    <div class="col-sm-8">
                        <input name="radioTypeScore" th:field="*{radioTypeScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">多选题数量：</label>
                    <div class="col-sm-8">
                        <input name="checkboxNum" th:field="*{checkboxNum}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">多选题每道题分数：</label>
                    <div class="col-sm-8">
                        <input name="checkboxOneScore" th:field="*{checkboxOneScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">多选题总分：</label>
                    <div class="col-sm-8">
                        <input name="checkboxTypeScore" th:field="*{checkboxTypeScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">不定项题数量：</label>
                    <div class="col-sm-8">
                        <input name="indefiniteNum" th:field="*{indefiniteNum}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">不定项题每道题分数：</label>
                    <div class="col-sm-8">
                        <input name="indefiniteOneScore" th:field="*{indefiniteOneScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">不定项题总分：</label>
                    <div class="col-sm-8">
                        <input name="indefiniteTypeScore" th:field="*{indefiniteTypeScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">主观题题数量：</label>
                    <div class="col-sm-8">
                        <input name="subjectiveNum" th:field="*{subjectiveNum}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">主观题每道题分数：</label>
                    <div class="col-sm-8">
                        <input name="subjectiveOneScore" th:field="*{subjectiveOneScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <div class="col-xs-12">
                <div class="form-group">
                    <label class="col-sm-3 control-label">主观题题总分：</label>
                    <div class="col-sm-8">
                        <input name="subjectiveTypeScore" th:field="*{subjectiveTypeScore}" class="form-control" type="text">
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "jxsx/folder";
        $("#form-folder-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-folder-edit').serialize());
            }
        }
    </script>
</body>
</html>